package com.example.bili.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (User)实体类
 *
 * @author makejava
 * @since 2025-02-17 08:49:54
 */
@Data
public class User implements Serializable{
    private static final long serialVersionUID = -62282011263191342L;
    /**
     * 主键ID
     */
    private Integer id;
    /**
     * UID
     */
    private Integer uid;
    /**
     * 头像路径
     */
    private String uavatarurl;
    /**
     * 昵称
     */
    private String uname;
    /**
     * 性别
     */
    private String usex;
    /**
     * 手机号
     */
    private String uphone;
    /**
     * 密码
     */
    private String upwd;
    /**
     * 出生日期 yyyy-MM-dd
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;
    /**
     * 个性签名
     */
    private String motto;
    /**
     * 学校
     */
    private String school;
    /**
     * 用户地址
     */
    private String uaddress;
    /**
     * 1普通用户 0会员
     */
    private Integer ismember;
    /**
     * 1正常状态 0锁定状态
     */
    private Integer isuserlock;


    //辅助
    private Integer trNum;
    private Integer foNum;
    private Integer fsNum;

    private String feName;
    private String fname;
    private String trtle;
    private String trUrl;
    private String truName;
    private Integer hisNum;
    private Integer coNum;
    private Integer feid;
    private Integer usid;


    public Integer getUsid() {
        return usid;
    }

    public void setUsid(Integer usid) {
        this.usid = usid;
    }

//    public String getfName() {
//        return fName;
//    }
//
//    public void setfName(String fName) {
//        this.fName = fName;
//    }

    private String comRateTime;

    public Integer getFeid() {
        return feid;
    }

    public void setFeid(Integer feid) {
        this.feid = feid;
    }

    public String getTruName() {
        return truName;
    }

    public void setTruName(String truName) {
        this.truName = truName;
    }

    public Integer getHisNum() {
        return hisNum;
    }

    public void setHisNum(Integer hisNum) {
        this.hisNum = hisNum;
    }

    public Integer getCoNum() {
        return coNum;
    }

    public void setCoNum(Integer coNum) {
        this.coNum = coNum;
    }

    public String getComRateTime() {
        return comRateTime;
    }

    public void setComRateTime(String comRateTime) {
        this.comRateTime = comRateTime;
    }

    public String getFeName() {
        return feName;
    }

    public void setFeName(String feName) {
        this.feName = feName;
    }

    public String getTrtle() {
        return trtle;
    }

    public void setTrtle(String trtle) {
        this.trtle = trtle;
    }

    public String getTrUrl() {
        return trUrl;
    }

    public void setTrUrl(String trUrl) {
        this.trUrl = trUrl;
    }

    public Integer getTrNum() {
        return trNum;
    }

    public void setTrNum(Integer trNum) {
        this.trNum = trNum;
    }

    public Integer getFoNum() {
        return foNum;
    }

    public void setFoNum(Integer foNum) {
        this.foNum = foNum;
    }

    public Integer getFsNum() {
        return fsNum;
    }

    public void setFsNum(Integer fsNum) {
        this.fsNum = fsNum;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

//    public Integer getuId() {
//        return uId;
//    }
//
//    public void setuId(Integer uId) {
//        this.uId = uId;
//    }
//
//    public String getuAvatarurl() {
//        return uAvatarurl;
//    }
//
//    public void setuAvatarurl(String uAvatarurl) {
//        this.uAvatarurl = uAvatarurl;
//    }
//
//    public String getuName() {
//        return uName;
//    }
//
//    public void setuName(String uName) {
//        this.uName = uName;
//    }
//
//    public String getuSex() {
//        return uSex;
//    }
//
//    public void setuSex(String uSex) {
//        this.uSex = uSex;
//    }
//
//    public String getuPhone() {
//        return uPhone;
//    }
//
//    public void setuPhone(String uPhone) {
//        this.uPhone = uPhone;
//    }
//
//    public String getuPwd() {
//        return uPwd;
//    }
//
//    public void setuPwd(String uPwd) {
//        this.uPwd = uPwd;
//    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getMotto() {
        return motto;
    }

    public void setMotto(String motto) {
        this.motto = motto;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

//    public String getuAddress() {
//        return uAddress;
//    }
//
//    public void setuAddress(String uAddress) {
//        this.uAddress = uAddress;
//    }

    public Integer getIsmember() {
        return ismember;
    }

    public void setIsmember(Integer ismember) {
        this.ismember = ismember;
    }

    public Integer getIsuserlock() {
        return isuserlock;
    }

    public void setIsuserlock(Integer isuserlock) {
        this.isuserlock = isuserlock;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUavatarurl() {
        return uavatarurl;
    }

    public void setUavatarurl(String uavatarurl) {
        this.uavatarurl = uavatarurl;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUsex() {
        return usex;
    }

    public void setUsex(String usex) {
        this.usex = usex;
    }

    public String getUphone() {
        return uphone;
    }

    public void setUphone(String uphone) {
        this.uphone = uphone;
    }

    public String getUpwd() {
        return upwd;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    public String getUaddress() {
        return uaddress;
    }

    public void setUaddress(String uaddress) {
        this.uaddress = uaddress;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }
}

